<!-- BEGIN: center-->
<script language="javascript" type="text/javascript">
function checkempty($obj,$msg){
	if($obj.value==""){
		alert("Please, input "+$msg);
		$obj.focus();
		return false;
	}
	else{
		return true;
	}
}
function compare($obj1,$obj2,$msg){
	if($obj1.value==$obj2.value){
		return true;
	}
	else{
		alert($msg);
		$obj1.focus();
		return false
	}
}
function validateEmail(email){
	var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (!re_mail.test(email.value)) {
		return false;
	}
	return true;
}
function checksubmit(){
	if(checkempty(document.frmContact.txtfirstname,"First Name"))
		if(checkempty(document.frmContact.txtlastname,"Last Name"))
			if(checkempty(document.frmContact.txtdes,"Description"))
				if(checkempty(document.frmContact.txtphone,"Phone Number"))
					if(validateEmail(document.frmContact.txtemail)){
						document.frmContact.submit();
					}
					else{
						alert('Invalid email address supplied. Please re-check your email address.');
					}
}
</script>
<table width="98%" cellpadding="3" cellspacing="3">
    <tr>
        <td class="leftPanel">
            <div class="picot_menu"></div>
            {FILE "templates/_htmls/left.support_online.html"}
        </td>
        <td class="mainPanel">
            <div class="page_header"><div class="page_header_text"><?php echo _LB_CONTACT; ?></div></div>
            <br />
            <table width="96%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                      <td>{txt}</td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr>
                <td valign="top" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td valign="top" style="padding-left:5px"><table width="97%" border="0" align="left">
                          <tr>
                            <td style="padding:5px" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td><strong>{msg}</strong></td>
                                </tr>
                              </table>
                              <form id="frmContact" name="frmContact" method="post" action="{base_url}contact/sending/">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="textnormal">
                                  <tr>
                                    <td colspan="2" ><strong>E-mail us by filling out the form below :</strong></td>
                                  </tr>
                                  <tr >
                                    <td colspan="2" class="textrednormal" style="padding-right: 20px;" align="right">* 
                                      Required information</td>
                                  </tr>
                                  <tr>
                                    <td> First Name</td>
                                    <td style="padding-bottom:3px"><input name="txtfirstname" type="text" maxlength="100" size="30" class="textred" />
                                      <span class="textrednormal">*</span></td>
                                  </tr>
                                  <tr>
                                    <td> Last Name</td>
                                    <td style="padding-bottom:3px"><input name="txtlastname" type="text" maxlength="100" size="30" class="textred" />
                                      <span class="textrednormal">*</span></td>
                                  </tr>
                                  <tr>
                                    <td>Email</td>
                                    <td style="padding-bottom:3px"><input name="txtemail" type="text" maxlength="100" size="30" class="textred" />
                                      <span class="textrednormal">*</span></td>
                                  </tr>
                                  <tr>
                                    <td>Address</td>
                                    <td style="padding-bottom:3px"><input name="txtaddress" type="text" maxlength="100" size="37" class="textred" /></td>
                                  </tr>
                                  <tr>
                                    <td>Phone Number</td>
                                    <td style="padding-bottom:3px"><input name="txtphone" type="text" maxlength="100" size="15" class="textred" />
                                      <span class="textrednormal">*</span></td>
                                  </tr>
                                  <tr>
                                    <td >Brief description</td>
                                    <td style="padding-bottom:3px"><textarea name="txtdes" cols="30" rows="5"></textarea>
                                      <span class="textrednormal">*</span></td>
                                  </tr>
                                  <tr>
                                    <td>Capcha</td>
                                    <td><input name="txtcapcha" type="text" />
                                      <img src="{base_url}randomimage.php" alt="security Image"  title="security Image" /><span class="textrednormal">*</span></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2" height="10px">&nbsp;</td>
                                  </tr>
                                  <tr>
                                    <td><input name="action" type="hidden" value="sending" /></td>
                                    <td><input name="Send" type="button" onclick="checksubmit()" title="Send" value="Send" class="button_border_black"  />
                                      <input name="Cancel" class="button_border_black" onclick="javascript:location.href='{base_url}contact/'" title="Cancel" type="button" value="Cancel"  />
                                    </td>
                                  </tr>
                                </table>
                              </form></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
        </td>
    </tr>
</table>

<!-- END: center-->
